<%@ Page Language="C#" MasterPageFile="~/Views\Home\test.master" Inherits="System.Web.Mvc.ViewPage" %>
 		<asp:Content ContentPlaceHolderID="test" runat="server">
 			<div class="tab_container">
   				 <div class="tab_content">
   				  	
   				  	<div class="sub_content">SEARCH BOOK</div> 
   				  	
   				  	<form id="search_book_form" class="form" action="" method="" >
   				  		<div class="error" id="s_error">Cannot search book! Please fill up the necessary information</div>
   				  		
	   				  		<label>Search:</label> <input class="mb_input" id="sb_book" type="text"  /><br/>
	   				  	</form> <br/>
	   				  	<table width="100%" cellspacing="0" id="ab_table">
	   				  		<thead>
	   				  			<td>ISBN</td>
	   				  			<td>Book Name</td>
	   				  			<td>Author</td>
	   				  			<td>Publisher</td>
	   				  			
	   				  		</thead>
	   				  		<% List<TestProject.Book> bookList = ViewData["Books"] as List<TestProject.Book>; %>
	   				  		<input type="hidden" id="index" value="0" />
	   				  		<input type="hidden" id="count" value="<%= Html.Encode(bookList.Count) %>" />
	   				  		
	   				  		<tbody id="sb_tbdy">
	   				  		<a id="nextPage" href="#">NEXT</a>&nbsp;<a id="prevPage" href="#">PREV</a>
							<% foreach (TestProject.Book item in (ViewData["Books"] as List<TestProject.Book>)) {%>
							<tr class="book_row"   id="<%= Html.Encode(item.isbn) %>_rows">
								<!--<td><a class="editBook_showForm" id="<%= Html.Encode(item.book_ID) %>" href="#">EDIT</a> | <a class="deleteBook" id="<%= Html.Encode(item.book_ID) %>" href="#">DELETE</a></td>-->
								<td id="<%= Html.Encode(item.book_ID) %>_id"><%= Html.Encode(item.isbn) %></td>
								<td id="<%= Html.Encode(item.book_ID) %>_title"><%= Html.Encode(item.title) %></td>
								<td id="<%= Html.Encode(item.book_ID) %>_author"><%= Html.Encode(item.author) %></td>
								<td id="<%= Html.Encode(item.publisher) %>_publisher"><%= Html.Encode(item.publisher) %></td>
							</tr>
							<% } %>
	   				  		</tbody>  				  	
	   				  	</table>
   				  	
   				 </div>
   				 
   				 
   			</div>
 			
 		</asp:Content>
 	
 	
